package com.gandong8.trace.tool.config.kafka.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "kafka.producer", ignoreUnknownFields = false)
@Data
public class KafkaProducerProperties {
    private String servers;
    private Integer retries = 3;
    private Integer batchSize = 5096;
    private Integer linger = 1;
    private Integer bufferMemory = 4096000;
    private String clientId = "test-1";
    private String keySerializer = "org.apache.kafka.common.serialization.StringSerializer";
    private String valueSerializer = "org.apache.kafka.common.serialization.StringSerializer";
    private String ack = "-1";

}
